package etnorservice.etnor_service.mapper;

import etnorservice.etnor_service.domain.po.ApiPublishConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: cc
 * @Date: 2025/02/25/11:01
 **/
@Mapper
public interface ApiPublishConfigMapper {

    // 插入新配置
    int insertConfig(ApiPublishConfig config);

    // 更新配置
    int updateConfig(ApiPublishConfig config);

    // 根据API ID获取配置
    ApiPublishConfig getByApiId(@Param("apiId") Long apiId);

    // 禁用配置
    int disableConfig(@Param("apiId") Long apiId);
   // 启用配置
    int openConfig(@Param("apiId") Long apiId);


}